package com.xxcxcxcx.xc_moremob.common.skills;

import com.xxcxcxcx.xc_moremob.common.entities.monster.realization.SkillBasicEntity;
//攻击时候视线抬头
public class SkillCastingSpellGoal extends ReleaseskillGoal {
    public SkillCastingSpellGoal(SkillBasicEntity mo) {
        super(mo);
    }
    public void tick() {
        if (mob.getTarget() != null) {
            mob.getLookControl().setLookAt(mob.getTarget(), (float)mob.getMaxHeadYRot(), (float)mob.getMaxHeadXRot());
        } else if (mob.getWololoTarget() != null) {
            mob.getLookControl().setLookAt(mob.getWololoTarget(), (float)mob.getMaxHeadYRot(), (float)mob.getMaxHeadXRot());
        }
    }
}